package resolvers

import (
	"context"
	"happy-sudoku/internal/model"
)

type playerRootResolver struct {
	*RootResolver
}

func (r *playerRootResolver) Character(ctx context.Context, obj *model.Player) (*model.CharacterData, error) {
	return r.playerSrv.GetCharacterByCharID(ctx, obj.CharacterID)
}

func (r *playerRootResolver) State(ctx context.Context, obj *model.Player) (*model.PlayerState, error) {
	return r.playerSrv.GetPlayerState(ctx, obj.ID)
}
